﻿using System;
using System.Collections.Generic;
using System.Windows.Data;
using WindowsPhoneApplication1.WebServiceDataSources;

namespace WindowsPhoneApplication1.Converters
{
    public class PaperClipConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (!string.IsNullOrEmpty(value as string))
                return "/Images/paperclip.png";

            return "";
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
